package com.ddyx.generator.code.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 商品属性选项
 * </p>
 *
 * @author agula
 * @since 2019-08-06
 */
@TableName("p_goods_spec_value")
public class GoodsSpecValue extends Model<GoodsSpecValue> {

    private static final long serialVersionUID=1L;

    /**
     * 产品规格ID
     */
    @TableId(value = "spec_value_id", type = IdType.AUTO)
    private Integer specValueId;

    /**
     * SKUID
     */
    private Integer skuId;

    /**
     * 商品ID
     */
    private Integer goodsId;

    /**
     * 属性名ID
     */
    private Integer propertyId;

    /**
     * 属性值ID
     */
    private Integer propertyValueId;

    /**
     * 是否SKU属性,0:否,1:是，默认0
     */
    private Integer isSku;


    public Integer getSpecValueId() {
        return specValueId;
    }

    public void setSpecValueId(Integer specValueId) {
        this.specValueId = specValueId;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(Integer propertyId) {
        this.propertyId = propertyId;
    }

    public Integer getPropertyValueId() {
        return propertyValueId;
    }

    public void setPropertyValueId(Integer propertyValueId) {
        this.propertyValueId = propertyValueId;
    }

    public Integer getIsSku() {
        return isSku;
    }

    public void setIsSku(Integer isSku) {
        this.isSku = isSku;
    }

    @Override
    protected Serializable pkVal() {
        return this.specValueId;
    }

    @Override
    public String toString() {
        return "GoodsSpecValue{" +
        "specValueId=" + specValueId +
        ", skuId=" + skuId +
        ", goodsId=" + goodsId +
        ", propertyId=" + propertyId +
        ", propertyValueId=" + propertyValueId +
        ", isSku=" + isSku +
        "}";
    }
}
